package com.spring.appservice.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.spring.appservice.web.model.Baby;
import com.spring.appservice.web.model.CommitExamGetNext;
import com.spring.appservice.web.model.Quest;

/**
 * Created by wojunyu on 2015/7/26.
 */
public interface AppQuestMapper {
	
    List<Quest> selectQuestByType(Map m);
    List<Quest> selectExamQuestById(Map m);



    List selectRuleDetail(Map m);
    //插入试卷
    int insertExam(Map m);
    //插入试卷题目
    int insertExamQuestions(Map m);

    //@Cacheable(value = "", key = "#hm.user_id")
    List<Quest> getExamHistoryById(HashMap hm);

    String getExamHistoryCountById(HashMap hm);



    //@Cacheable(value = "", key = "#id")
    Quest getObj(Long id);

    List<Quest> getExamHistoryDetail(String score_id);
    List<Quest> getExamHistoryDetailComplete(HashMap hm);
    String commitExamCheckHaveDate(HashMap hm);

   void  commitExamInsertExam_answer(HashMap hm);
    void  commitExamInsertUpdateExam_answer(HashMap hm);
    List<CommitExamGetNext>  commitExamGetNext(HashMap hm);
    List<CommitExamGetNext>   getNotCompleteExamHistory(String exam_id);

    String getNotCompleteExamCountHistory(String exam_id);

    //int commitScore(HashMap hm);
    void commitExamAll(HashMap hm);
    
    List<Baby> getBabyByParent(String c_user_id);



}
